<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var a={"name":"xwc","age":"12"}
for(var key in a){
    alert(a[key]);
}
</script>
</head>
<body>

</body>
</html>